package com.example.sbeducation.dto;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * 作业批改DTO
 */
@Data
public class HomeworkGradeDTO {

  /**
   * 提交ID
   */
  @NotNull(message = "提交ID不能为空")
  private Long submissionId;

  /**
   * 分数
   */
  @NotNull(message = "分数不能为空")
  @Min(value = 0, message = "分数不能小于0")
  @Max(value = 100, message = "分数不能大于100")
  private Integer score;

  /**
   * 教师评语
   */
  private String comment;
}